import request from '@/utils/request'


export function bookList(data) {
  return request({
    url: '/book/list',
    method: 'post',
    data
  })
}


export function bookInfo(data) {
  return request({
    url: '/book/info',
    method: 'get',
    params: data,
  })
}


export function delBook(data) {
  return request({
    url: "/book/delete",
    method: "get",
    params: data,
  });
}

export function lendBook(data) {
  return request({
    url: "/book/lend",
    method: "get",
    params: data,
  });
}


export function updateBook(data) {
  return request({
    url: "/book/update",
    method: "post",
    data
  });
}

export function addBook(data) {
  return request({
    url: "/book/add",
    method: "post",
    data
  });
}